import { postAxios, getAxios, postDownloadAxios } from '@/lib/http';

export const drivecycleApi = {
    // 添加行驶工况特性曲线 (drivecycle) UPDATE  @author wuhq
    addDrivecycle: (data) => {
        return postAxios('/drivecycle/add', data);
    },
    // 分页查询行驶工况特性曲线 (drivecycle) UPDATE  @author wuhq
    queryDrivecycle: (data) => {
        return postAxios('/drivecycle/page/query', data);
    },
    // 批量删除行驶工况特性曲线 (drivecycle) UPDATE  @author wuhq
    batchDeleteDrivecycle: (idList) => {
        return postAxios('/drivecycle/deleteByIds', idList);
    },
    // 修改行驶工况特性曲线 (drivecycle) UPDATE   @author wuhq
    updateDrivecycle: (data) => {
        return postAxios('/drivecycle/update',data);
    },
    // 导出全部  @author wuhq
    exportAll:(data)=>{
        return postDownloadAxios('/drivecycle/export/all',data);
    },
    // 批量导出  @author wuhq
    batchExport: (idList) => {
        return postDownloadAxios('/drivecycle/export/batch', idList);
    },
};
